package com.xinqi.xinqidev.day20231209jingdong.q2;

import org.junit.Test;

import java.util.Arrays;
import java.util.Scanner;

/**
 * @author xin麒
 * @date 2023/12/9 10:43
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String[] split = scanner.nextLine().split(" ");
        long result = process(Long.parseLong(split[0]),Long.parseLong(split[1]),Long.parseLong(split[2]));
        System.out.println(result);

    }

    private static long process(long n, long m, long k) {
//        if ()
        long size = n * m;
        long[] nums = new long[(int) size];
        int index = 0;
        for (long i = 1; i <= n ; i++) {
            for (long j = 1; j <= m; j++) {
                nums[index++] = i * j;
            }
        }
        Arrays.sort(nums);
        return nums[(int) (k - 1)];
    }


}
